package com.ljy.service;

import com.ljy.pojo.wx.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface Wx_user_Service {

    /*
     *注册用户
     *@param Wx_user
     *@return
     * */
    public abstract int addUserInfo(User wx_user);

    /**
     * 用户第一次登录初始化安全信息
     * @param user  用户信息
     * @return
     */
    public abstract int addUserDfuSafeInfo(User user);

    /**
     * 根据用户open_id获取用户信息
     * @param open_id 用户唯一标识
     * @return
     */
    public abstract User getUserInfo(@Param("open_id") String open_id);

    /**
     * 根据用户id查询用户信息
     * @param user_id
     * @return
     * @throws Exception
     */
    public abstract User getUserById(Long user_id) throws Exception;



}
